package javango.forms.fields;

import com.google.inject.Inject;

import javango.forms.widgets.WidgetFactory;

public class IPAddressField extends RegexField {

	@Inject
	public IPAddressField(WidgetFactory widgetFactory) {
		super(widgetFactory);
		setRegex("^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$");
		setErrorMessage("Enter a valid IPv4 address.");
	}

	
	
}
